package com.ksyun.campus.dataserver;

import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.scheduling.annotation.EnableScheduling;

@Slf4j
@SpringBootApplication
@EnableScheduling  // 启用定时任务
public class DataServerApplication {
    public static void main(String[] args) {
        try {
            SpringApplication.run(DataServerApplication.class, args);
            log.info("启动成功");
        } catch (Throwable e) {
            log.error("启动异常", e);
        }
    }
}
